﻿using System;
namespace Model
{
	/// <summary>
	/// Ticket:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Ticket
	{
		public Ticket()
		{}
		#region Model
        private int _id;
        private string _name;
        private DateTime? _begdate;
        private DateTime? _enddate;
        private int? _totalnum;
        private int? _usablenum;
        private string _crowd;
        private string _pic;
        private bool _isshow;
        private string _type;
        private string _discount;
        private decimal? _oldprice;
        private decimal? _newprice;
        private string _describe;
        private int? _havnum;
        private string _remark;
        /// <summary>
        /// 优惠券表
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 券的名称
        /// </summary>
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 优惠券开始时间
        /// </summary>
        public DateTime? BegDate
        {
            set { _begdate = value; }
            get { return _begdate; }
        }
        /// <summary>
        /// 优惠券结束时间
        /// </summary>
        public DateTime? EndDate
        {
            set { _enddate = value; }
            get { return _enddate; }
        }
        /// <summary>
        /// 优惠券总数量
        /// </summary>
        public int? TotalNum
        {
            set { _totalnum = value; }
            get { return _totalnum; }
        }
        /// <summary>
        /// 优惠券可用数量
        /// </summary>
        public int? UsableNum
        {
            set { _usablenum = value; }
            get { return _usablenum; }
        }
        /// <summary>
        /// 优惠券适用人群
        /// </summary>
        public string Crowd
        {
            set { _crowd = value; }
            get { return _crowd; }
        }
        /// <summary>
        /// 优惠券图片
        /// </summary>
        public string Pic
        {
            set { _pic = value; }
            get { return _pic; }
        }
        /// <summary>
        /// 是否显示
        /// </summary>
        public bool IsShow
        {
            set { _isshow = value; }
            get { return _isshow; }
        }
        /// <summary>
        /// 优惠券类型  现金券，折扣券，特价券等
        /// </summary>
        public string Type
        {
            set { _type = value; }
            get { return _type; }
        }
        /// <summary>
        /// 折扣
        /// </summary>
        public string Discount
        {
            set { _discount = value; }
            get { return _discount; }
        }
        /// <summary>
        /// 原价
        /// </summary>
        public decimal? OldPrice
        {
            set { _oldprice = value; }
            get { return _oldprice; }
        }
        /// <summary>
        /// 现价
        /// </summary>
        public decimal? NewPrice
        {
            set { _newprice = value; }
            get { return _newprice; }
        }
        /// <summary>
        /// 描述
        /// </summary>
        public string Describe
        {
            set { _describe = value; }
            get { return _describe; }
        }
        /// <summary>
        /// 已下载人数
        /// </summary>
        public int? HavNum
        {
            set { _havnum = value; }
            get { return _havnum; }
        }
        /// <summary>
        /// 备用字段
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }

        private int _IsSY;
        /// <summary>
        /// 优惠券是否已使用  1已使用 0未使用
        /// </summary>
        public int IsSY
        {
            get { return _IsSY; }
            set { _IsSY = value; }
        }
		#endregion Model

	}
}

